﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _20161218_StringExamples
{
    class StringWithCounter
    {
        string str;
        int count;

        public StringWithCounter(string str)
        {
            this.str = str;
            count = 1;
        }

        public void IncrementCount()
        {
            count++;
        }

        public string GetStr()
        {
            return str;
        }

        public int GetCount()
        {
            return count;
        }
    }
}
